/*
 * @Author: Kevin Zhao
 * @Date: 2021-07-28 22:56:39
 * @LastEditTime: 2021-12-11 14:36:25
 * @LastEditors: Kevin Zhao
 * @Description: 护工服务api
 * @FilePath: \uniapp-pro\src\api\service.ts
 */
import request from '../server/request'

interface ServiceInfoInterface {
    serviceInfoId: number | string
}

/**
 * @description: 获取护工服务列表
 * @param {*}
 * @return {*}
 */
export const getNursingListAPI  = ():any => {
    return request({
    }, 'getNursingServiceList')
}

/**
 * @description: 获取护工服务详情
 * @param {ServiceInfoInterface} params
 * @return {*}
 */
export const getNursingInfoAPI = (params: ServiceInfoInterface):any => {
    return request(params, 'getNursingServiceInfo')
}

/** 
 * @description: 获取家政服务列表
 * @param {*}
 * @return {*}
 */
export const getHousekeepingListAPI  = ():any => {
    return request({}, 'getHomeServiceList')
}

/**
 * @description: 获取家政服务详情
 * @param {ServiceInfoInterface} params
 * @return {*}
 */
export const getHousekeepingInfoAPI = (params: ServiceInfoInterface):any => {
    return request(params, 'getHomeServiceInfo')
}